package upload;

public class ThreadTest
{
	public ThreadTest(){
		TimeoutThread tt = new TimeoutThread();
		try{
			tt.start();
		}catch(Exception e){
			System.out.println(e.getMessage());
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		new ThreadTest();
	}
	
	class TimeoutThread extends Thread{
		
		public void run(){
			while(true){
				try {
					this.sleep(5000);
					throw new RuntimeException("timeout");
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		}
	}

}
